/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */

package org.sbbs;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * <b>描述:</b><br/>
 * <br/>
 * 
 * 说明描述用途及关键点,算法等
 * <p>
 * <b>创建时间:</b> 2025年3月18日 15:16:39 <br/>
 * <b>作者:</b> Mr.FDC <fdc_messenger@126.com> <br/>
 * 
 * <p>
 * <b>修改记录:</b><br/>
 * <ol>
 * <li>......</li>
 * </ol>
 */
@RestController
@RequestMapping("/test")
public class TestController {

	// @Autowired
	// ScheduleTask task;

	@Scheduled(cron = "* * * * * ?")
	@GetMapping("/schedule")
	// @Scheduled(cron = "0 0 6 * * ?")
	public String schedule() {
		System.out.println("org.sbbs.TestController.schedule():   " + System.currentTimeMillis());
//		for (Object object : col) {
//
//		}
		return "ok";
	}

}
